package com.gt.web.srv.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;

/**
 * 用户信息DTO
 * 对应数据库表：ss_user
 */
@Data
@TableName("ss_user")
public class SsUser {
    /** 小程序用户ID */
    @TableId(value = "user_id", type = IdType.AUTO)
    private Long userId;

    /** 小程序ID */
    @TableField("open_id")
    private String openId = "";

    /** 小程序unionId */
    @TableField("union_id")
    private String unionId = "";

    /** 小程序昵称 */
    @TableField("open_nick")
    private String openNick = "";

    /** 微信头像 */
    @TableField("open_avatar_url")
    private String openAvatarUrl = "";

    /** 姓名 */
    @TableField("name")
    private String name = "";

    /** 手机 */
    @TableField(value = "mobile", insertStrategy = FieldStrategy.NOT_EMPTY)
    private String mobile = "";

    /** 身份证 */
    @TableField("people_card")
    private String peopleCard = "";

    /** 性别 */
    @TableField("people_sex")
    private Integer peopleSex;

    /** 出生年月 */
    @TableField("people_birth")
    private String peopleBirth = "";

    /** 住址 */
    @TableField("people_address")
    private String peopleAddress = "";

    /** 等级（三方系统） */
    @TableField("level")
    private String level = "";

    /** 积分（三方系统） */
    @TableField("points")
    private String points = "";

    /** 状态（0正常 1停用） */
    @TableField(value = "status", insertStrategy = FieldStrategy.NOT_NULL)
    private Integer status = 0;

    /** 创建者 */
    @TableField("create_by")
    private String createBy = "";

    /** 创建时间 */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /** 更新者 */
    @TableField("update_by")
    private String updateBy = "";

    /** 更新时间 */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    /** 备注 */
    @TableField("remark")
    private String remark;
}